/*fq*/
angular.module('indexApp')
    .controller('all_activityCtrl', function ($scope, $state, $rootScope, $http, $stateParams) {
        var vm = this;
        $scope.state = $state;
        vm.http = $rootScope.http;
        vm.couponList=[];
        $http({
            method: 'post',
            url: $rootScope.http + 'activity_list',
            data: {
                // id: id
            }
        })
            .then(function successCallback(res) {
                console.log(res.data);
                if(res.data.code==0){
                    vm.data=res.data.data;
                }
            }, function errorCallback(res) {// 请求失败执行代码
                $rootScope.alertError()
            });
    });